Lock all users in a folder

My problem: I want to lock all users of a specific folder and all the modules in there

But I absolutliy don´t know how to do and the help-File didn´t help

That´s what I tried...

pragma runLim,0;
 
Folder xF = folder "/.x.x.x./Consolidated"
Module m
 
for m in xF do
{ 
string errormess 
errormess = lockRemoved module m 
if (null errormess) 
}
 
close out

Reudaeaeae - Thu Sep 16 09:36:22 EDT 2010

Re: Lock all users in a folder
Mathias Mamsch - Thu Sep 16 12:17:28 EDT 2010

What exactly do you mean by "lock all users" ? Do you want to remove access? Or do you want to lock the modules, so that no other session can open the modules in there in exclusive or shared edit? Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Lock all users in a folder
Reudaeaeae - Fri Sep 17 02:30:30 EDT 2010

Mathias Mamsch - Thu Sep 16 12:17:28 EDT 2010
What exactly do you mean by "lock all users" ? Do you want to remove access? Or do you want to lock the modules, so that no other session can open the modules in there in exclusive or shared edit? Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Sorry, I made a mistake.
Of course, I wanted to say that I want to remove the access.
I´ve changed the code: "lock" -> "unlock" but it has no effect.
Any idea

Re: Lock all users in a folder
Mathias Mamsch - Fri Sep 17 07:29:12 EDT 2010

Reudaeaeae - Fri Sep 17 02:30:30 EDT 2010
Sorry, I made a mistake.
Of course, I wanted to say that I want to remove the access.
I´ve changed the code: "lock" -> "unlock" but it has no effect.
Any idea

Locking / Unlocking in Doors in DOORS has a different meaning that removing access. You lock a module, when you open it for edit (so while a module is locked, no other user can lock=edit it, except in case of a "shared lock" ... etc ...)

To remove access take a look at "Managing Access" in the dxl reference manual. You can explicitly remove access for certain users by setting their special user access rights to a module/folder to "None" or "Read". You can restrict access to some users/groups, by removing the "Everyone" rights and making sure that these users have access. Just like you would do it in the GUI. Doing it by script is just a sequence special commands and pretty easy.

Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Lock all users in a folder
Reudaeaeae - Fri Sep 17 08:44:14 EDT 2010

Mathias Mamsch - Fri Sep 17 07:29:12 EDT 2010
Locking / Unlocking in Doors in DOORS has a different meaning that removing access. You lock a module, when you open it for edit (so while a module is locked, no other user can lock=edit it, except in case of a "shared lock" ... etc ...)

To remove access take a look at "Managing Access" in the dxl reference manual. You can explicitly remove access for certain users by setting their special user access rights to a module/folder to "None" or "Read". You can restrict access to some users/groups, by removing the "Everyone" rights and making sure that these users have access. Just like you would do it in the GUI. Doing it by script is just a sequence special commands and pretty easy.

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

could you show me some code for kicking all users off, which are working on different modules in one folder, so that I can run a important script